package fwx.model;

public class User {
    private int id;
    private String name;
    private String password;
    private String sex;
    private String identify;
    private int admin;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getIdentify() {
        return identify;
    }

    public void setIdentify(String identify) {
        this.identify = identify;
    }

    public int getAdmin() {
        return admin;
    }

    public void setAdmin(int admin) {
        this.admin = admin;
    }



    public User() {
    }

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public User(String name, String password, int admin) {
        this.name = name;
        this.password = password;
        this.admin = admin;
    }

    public User(int id, String name, String password, String sex, String identify, int admin) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.identify = identify;
        this.admin = admin;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", identify='" + identify + '\'' +
                ", admin=" + admin +
                '}';
    }
}
